*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	17:26:15 	lx 	(5. Tcp Server 2)

closing socket '72'. 	29.12.2021 	17:26:15 	lx 	(5. Tcp Server 2)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	17:26:15 	lx 	(5. Tcp Server 2)

closing socket '73'. 	29.12.2021 	17:26:15 	lx 	(5. Tcp Server 2)

 -- Server statistics --
answerCount:          0
poll.fd_count:        1
pollCount:            3121056
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   0
totalBytesSent:       0. 	29.12.2021 	17:26:15 	lx 	(5. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 80
. 	29.12.2021 	17:26:15 	lx 	(5. Tcp Server 2)

closing socket '80'. 	29.12.2021 	17:26:15 	lx 	(5. Tcp Server 2)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0121883400. 	29.12.2021 	17:26:15 	lx 	(5. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0121883400, size: 400. 	29.12.2021 	17:26:15 	lx 	(5. Tcp Server 2)

--- server stopped ---. 	29.12.2021 	17:26:15 	lx 	(5. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x0121883400. 	29.12.2021 	17:26:15 	lx 	(5. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	19:29:45 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	29.12.2021 	19:29:45 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	29.12.2021 	19:29:45 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	19:29:45 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	19:29:45 	lx 	(1. Application process)

  database connect time: 0.0007 seconds. 	29.12.2021 	19:29:45 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	29.12.2021 	19:29:45 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	29.12.2021 	19:29:45 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	19:29:45 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	29.12.2021 	19:29:45 	lx 	(1. Application process)

Tcp server 2 starting. 	29.12.2021 	19:29:45 	_lx_SERVER 	(5. Tcp Server 2)

Field has not been translated: [Product]Reserved. 	29.12.2021 	19:29:45 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Product]Fixed. 	29.12.2021 	19:29:45 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Product]Available. 	29.12.2021 	19:29:45 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Phase_Actual]Previous_Track_Time. 	29.12.2021 	19:29:45 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Order_Schedule]Can_Be_Manufactured. 	29.12.2021 	19:29:45 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Order_Schedule]Manufacturing_State. 	29.12.2021 	19:29:45 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

  database connect time: 0.0003 seconds. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0129df1e40, size: 400. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

All plugins have been loaded. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

Mac address: f84d896921dc. 	29.12.2021 	19:29:46 	lx 	(5. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	29.12.2021 	19:29:47 	lx 	(5. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.223.1:5949/,  http://172.16.153.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.223.1:5949/, https://172.16.153.1:5949/. 	29.12.2021 	19:29:47 	lx 	(5. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.223.1:5949, 172.16.153.1:5949/. 	29.12.2021 	19:29:47 	lx 	(5. Tcp Server 2)

--- server started in 0.0021 seconds, 2021-12-29 19:29:47, used memory 3018.2 kb --- 	 5. 	29.12.2021 	19:29:47 	lx 	(5. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	29.12.2021 	19:29:47 	lx 	(5. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-29 19:29:56
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 762
Content-Uncompressed-Length: 1041

LZ4. 	29.12.2021 	19:29:56 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	19:29:56 	lx 	(5. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	29.12.2021 	19:29:56 	lx 	(5. Tcp Server 2)

  database connect time: 0.0001 seconds. 	29.12.2021 	19:29:56 	lx 	(5. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	29.12.2021 	19:29:56 	lx 	(5. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id = '' ORDER BY inr.row_number INTO :_lx_atExe1
 - original query: SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	29.12.2021 	19:29:56 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 1. answer time: 00:00:00.00227
  
SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number. 	29.12.2021 	19:29:56 	lx 	(5. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id = '' ORDER BY inr.row_number INTO :_lx_atExe1
 - original query: SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	29.12.2021 	19:34:29 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.transfer_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email, co.info FROM company co  WHERE co.transfer_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 160, first value: '1181'
 - query name: new:form/nc/erp-sync/query/customer.json. 	29.12.2021 	19:34:34 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.state IS NOT NULL ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.state IS NOT NULL  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	19:34:37 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4016, first value: 'CANOPY'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	29.12.2021 	19:34:39 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 5, send count: 5, loop count: 4, bytes sent 408300 / -36136 remaining, total send time 35 µs. 	29.12.2021 	19:34:39 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.transfer_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email, co.info FROM company co  WHERE co.transfer_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 160, first value: '1181'
 - query name: new:form/nc/erp-sync/query/customer.json. 	29.12.2021 	19:34:41 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id = '' ORDER BY inr.row_number INTO :_lx_atExe1
 - original query: SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	29.12.2021 	19:34:47 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.state IS NOT NULL ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.state IS NOT NULL  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	19:34:49 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.state IS NOT NULL ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.state IS NOT NULL  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	19:38:56 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4016, first value: 'CANOPY'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	29.12.2021 	19:38:57 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 10, send count: 5, loop count: 4, bytes sent 391968 / -19994 remaining, total send time 59 µs. 	29.12.2021 	19:38:57 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.transfer_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email, co.info FROM company co  WHERE co.transfer_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 160, first value: '1181'
 - query name: new:form/nc/erp-sync/query/customer.json. 	29.12.2021 	19:39:00 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id = '' ORDER BY inr.row_number INTO :_lx_atExe1
 - original query: SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	29.12.2021 	19:39:04 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4016, first value: 'CANOPY'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	29.12.2021 	19:39:06 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 13, send count: 5, loop count: 4, bytes sent 408300 / -38729 remaining, total send time 8 µs. 	29.12.2021 	19:39:06 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.state IS NOT NULL ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.state IS NOT NULL  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	19:39:10 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4016, first value: 'CANOPY'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	29.12.2021 	19:39:11 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 15, send count: 5, loop count: 4, bytes sent 408300 / -35682 remaining, total send time 46 µs. 	29.12.2021 	19:39:12 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.transfer_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email, co.info FROM company co  WHERE co.transfer_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 160, first value: '1181'
 - query name: new:form/nc/erp-sync/query/customer.json. 	29.12.2021 	19:39:12 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.state IS NOT NULL ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.state IS NOT NULL  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	19:39:15 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 039 bytes ***. 	29.12.2021 	19:39:29 	lx 	(5. Tcp Server 2)

closing socket '77'. 	29.12.2021 	19:39:29 	lx 	(5. Tcp Server 2)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	29.12.2021 	19:39:37 	_lx_SERVER 	(10. tbl_ 9)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	19:39:37 	lx 	(5. Tcp Server 2)

closing socket '72'. 	29.12.2021 	19:39:37 	lx 	(5. Tcp Server 2)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	19:39:37 	lx 	(5. Tcp Server 2)

closing socket '73'. 	29.12.2021 	19:39:37 	lx 	(5. Tcp Server 2)

 -- Server statistics --
answerCount:          17
poll.fd_count:        0
pollCount:            25752
pollInCount:          18
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  3/3
totalBytesReceived:   16562
totalBytesSent:       370272. 	29.12.2021 	19:39:37 	lx 	(5. Tcp Server 2)

--- server stopped ---. 	29.12.2021 	19:39:37 	lx 	(5. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x0129df1e40. 	29.12.2021 	19:39:37 	lx 	(5. Tcp Server 2)

Tcp server 2 stopped. 	29.12.2021 	19:39:37 	_lx_SERVER 	(5. Tcp Server 2)

Tcp server 2 starting. 	29.12.2021 	20:17:06 	_lx_SERVER 	(5. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

  database connect time: 0.0005 seconds. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x010413ff30, size: 400. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

All plugins have been loaded. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

Mac address: f84d896921dc. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.223.1:5949/,  http://172.16.153.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.223.1:5949/, https://172.16.153.1:5949/. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.223.1:5949, 172.16.153.1:5949/. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

--- server started in 0.0046 seconds, 2021-12-29 20:17:08, used memory 3110.2 kb --- 	 5. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	29.12.2021 	20:17:08 	lx 	(5. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-29 20:21:10
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 755
Content-Uncompressed-Length: 1113

LZ4. 	29.12.2021 	20:21:10 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	20:21:10 	lx 	(5. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	29.12.2021 	20:21:10 	lx 	(5. Tcp Server 2)

  database connect time: 0.0001 seconds. 	29.12.2021 	20:21:10 	lx 	(5. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	29.12.2021 	20:21:10 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	20:21:10 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 1. answer time: 00:00:00.00265
  
SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.invoice_id <> ''
 ORDER BY inv.invoice_id. 	29.12.2021 	20:21:10 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	20:21:15 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: 'CANOPY'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	29.12.2021 	20:21:17 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 3, send count: 5, loop count: 4, bytes sent 408300 / -33652 remaining, total send time 65 µs. 	29.12.2021 	20:21:18 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '1181'
 - query name: new:form/nc/erp-sync/query/customer.json. 	29.12.2021 	20:21:20 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id = '' ORDER BY inr.row_number INTO :_lx_atExe1
 - original query: SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	29.12.2021 	20:21:22 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	20:21:59 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	20:22:00 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	20:22:00 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: 'CANOPY'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	29.12.2021 	20:22:02 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 9, send count: 5, loop count: 4, bytes sent 391968 / -21360 remaining, total send time 430 µs. 	29.12.2021 	20:22:03 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '1181'
 - query name: new:form/nc/erp-sync/query/customer.json. 	29.12.2021 	20:22:04 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id = '' ORDER BY inr.row_number INTO :_lx_atExe1
 - original query: SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	29.12.2021 	20:22:06 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '1181'
 - query name: new:form/nc/erp-sync/query/customer.json. 	29.12.2021 	20:22:08 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: 'CANOPY'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	29.12.2021 	20:22:13 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 13, send count: 5, loop count: 4, bytes sent 408300 / -37692 remaining, total send time 144 µs. 	29.12.2021 	20:22:13 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	20:22:14 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '1181'
 - query name: new:form/nc/erp-sync/query/customer.json. 	29.12.2021 	20:23:27 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	20:26:32 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	20:26:32 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	20:26:32 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	20:27:11 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	20:27:11 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	20:27:11 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

